package com.edu.buservice.dal.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @program: KQAIA
 * @description:
 * @author: 无恙
 * @create: 2025-03-09 13:15
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseDo {

	/**
	 * 状态（1-正常 2-禁用）
	 */
	@TableField(value = "status")
	private Integer status;

	/**
	 * 是否删除
	 */
	@TableField(value = "deleted")
	@TableLogic
	private Integer deleted;

	/**
	 * 创建人
	 */
	@TableField(value = "created_by", fill = FieldFill.INSERT)
	private String createdBy;

	/**
	 * 创建时间
	 */
	@TableField(value = "created_at", fill = FieldFill.INSERT)
	private Date createdAt;

	/**
	 * 修改人
	 */
	@TableField(value = "updated_by",fill=FieldFill.INSERT_UPDATE)
	private String updatedBy;

	/**
	 * 修改时间
	 */
	@TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
	private Date updatedAt;
}
